package com.xyy.saas.payment.adapter.channel.fm.config;

import com.xyy.saas.payment.enums.AmountTypeEnum;

public class ProfitSharingAccountConfig {
    /**
     * AmountTypeEnum
     */
    private String amountType;
    /**
     * PayAccount.businessUserId
     */
    private String businessUserId;

    /**
     * 账户匹配
     * @param amountType
     * @return
     */
    public String matchAccount(AmountTypeEnum amountType) {
        if(amountType.name().equals(this.amountType)) {
            return businessUserId;
        }

        return null;
    }

    public String getAmountType() {
        return amountType;
    }

    public void setAmountType(String amountType) {
        this.amountType = amountType;
    }

    public String getBusinessUserId() {
        return businessUserId;
    }

    public void setBusinessUserId(String businessUserId) {
        this.businessUserId = businessUserId;
    }
}